Expand description
Interact with git revisions by parsing them from rev-specs and describing them in terms of reference names.
§Feature Flags
describe
(enabled by default) —git describe
functionalitymerge_base
(enabled by default) —git merge-base
functionalityserde
— Data structures implementserde::Serialize
andserde::Deserialize
.
Modules§
- describe
describe
- merge_
base merge_base
Structs§
- A graph of commits which additionally allows to associate data with commits.
- A utility type implementing a queue which can be used to automatically sort data by its time in ascending order.
Enums§
- A revision specification without any bindings to a repository, useful for serialization or movement over thread boundaries.
Functions§
- describe
describe
Given acommit
id, traverse the commitgraph
and collect candidate names from thename_by_oid
mapping to produce anOutcome
, which convertedinto_format()
will produce a typicalgit describe
string. - merge_
base merge_base
Given a commit atfirst
id, traverse the commitgraph
and return all possible merge-base between it andothers
, sorted from best to worst. ReturnsNone
if there is no merge-base asfirst
andothers
don’t share history. Ifothers
is empty,Some(first)
is returned.